package main

import (
	"fmt"
)
//import "math"

const name  = 4;
var a,b,c,d,f int;


func maind() {
	c:=false;
	fmt.Print(name)
	var b int = 1;
	fmt.Print(b);
	fmt.Print(c);
	w,e,r,t := 1,2,3,4;
	fmt.Print(w,e,r,t)
	//fmt.Print(math.MaxInt32)
}

func mains()  {
	var a float32 = 100.1
	fmt.Print(a)
}

func main1()  {
	a:=0
	fmt.Print(3&^3)
	if a>0 && (10/a) > 1 {
		fmt.Print("ok")
	}
}

func mainf()  {
	a:=1;
	for a<=3 {
		a++
	}
	fmt.Print(a);
	for i:=1; i<10;i++  {
		fmt.Print(i)
	}
}

func mainsw()  {
	a:=1
	switch a {
	case 0:
		fmt.Print(0)
	case 1:
		fmt.Print(1)
		fallthrough
	case 2:
		fmt.Print(2)
	default:
		fmt.Print("default")
	}
}

func mainarrd()  {
	a:=[...]int{1,5,8,7,6,3,5,4,8,2,1}
	fmt.Print(a);
	len := len(a);
	for i:=0; i<len; i++ {
		for j:=i+1; j<len; j++ {
			if a[i] < a[j] {
				temp:=a[i]
				a[i] = a[j]
				a[j] = temp
			}
		}
	}
	fmt.Print(a)
}

func main44()  {
	a:=[10]int{}
	fmt.Print(a)
	s1:=a[9]
	fmt.Print(s1)
}

type Book struct {
	title string
	author string
	subject string
	book_id int
}

func main000()  {
	s1 := make([]int,3,6)
	fmt.Print(cap(s1))
}

func main()  {
	var sa []string
	fmt.Printf("addr:%p \t\tlen:%v content:%v\n",sa,len(sa),sa);
	for i:=0;i<10;i++{
		sa = append(sa,fmt.Sprintf("%v",i))
		fmt.Printf("addr:%p \t\tlen:%v content:%v\n",sa,len(sa),sa);
	}
	fmt.Printf("addr:%p \t\tlen:%v content:%v\n",sa,len(sa),sa);
}









